/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beanUser;

import com.matrimonysite.entity.UserServicePackage;
import com.matrimonysite.sessionbean.UserServicePackageFacade;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author khanhnguyen
 */
@ManagedBean (name = "ViewServices")
@SessionScoped
public class ViewServices {
    @EJB
    private  UserServicePackageFacade userServicePackageFacade;
    private UserServicePackage userServicePackage;
    List<UserServicePackage> userRequestRespondList;

    public UserServicePackage getUserServicePackage() {
        return userServicePackage;
    }

    public void setUserServicePackage(UserServicePackage userServicePackage) {
        this.userServicePackage = userServicePackage;
    }
    /**
     * Creates a new instance of ViewServices
     */
    public ViewServices() {
        userServicePackage = new UserServicePackage();
        userServicePackageFacade = new UserServicePackageFacade();
    }
    
    public List<UserServicePackage> getAllUserServicePackage(){
        return userServicePackageFacade.getAllUserServicePackage();
    }
}
